import instance from '@/utils/request';

//获取报损列表
export function GetFrmlossapi(data) {
    return instance.request({
        url: "api/LossReporting/ShowFrmloss",
        method: "post",
        data
    })
}

//获取产品列表
export function GetProductapi(data) {
    return instance.request({
        url: "api/LossReporting/ShowProduct",
        method: "post",
        data
    })
}

//删除报损
export function DeleteFrmlapi(data) {
    return instance.request({
        url: "api/LossReporting/DeleteFrmloss",
        method: "post",
        data
    })
}

//批量删除报损
export function BatchDeleteFrmlapi(data) {
    return instance.request({
        url: "api/LossReporting/BatchDelFrmloss",
        method: "post",
        params: data
    })
}

//报损详情
export function FrmlDetailapi(data) {
    return instance.request({
        url: "api/LossReporting/ReverseFrmloss",
        method: "post",
        data
    })
}
